package com.ibeetl.cms.entity;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.LogicDelete;
import org.beetl.sql.core.annotatoin.SeqID;

import javax.validation.constraints.NotNull;
import java.util.Date;


/* 
* 
* gen by Spring Boot2 Admin 2018-10-11
*/
public class TelentCard extends BaseEntity{

    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private String id ;
	
    //名字

    private String name ;
	
    //性别
    @Dict(type="gender")

    private String gender ;
	
    //证件号

    private String cardNumber ;
	
    //积分

    private Double score ;
	
    // 用户id，关联用户

    private Integer userid ;
	
    //起始有效日期

    private Date startdate ;
	
    // 截止日期

    private Date enddate ;
	
    //用户删除标记 0:未删除 1:已删除
	/*逻辑删除标志*/
	@InsertIgnore
	@LogicDelete(value = 1)

    private String delFlag ;
    private String level;

    private Date createTime;
    private String seq;

    private String socialCreditCode;

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }

    public TelentCard()
    {
    }

    public String getId(){
	    return  id;
    }
    public void setId(String id){
        this.id = id;
    }

    /**名字
    *@return 
    */
    public String getName(){
	    return  name;
    }
    /**名字
    *@param  name
    */
    public void setName(String name){
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    /**证件号
    *@return 
    */
    public String getCardNumber(){
	    return  cardNumber;
    }
    /**证件号
    *@param  cardNumber
    */
    public void setCardNumber(String cardNumber){
        this.cardNumber = cardNumber;
    }

    /**积分
    *@return 
    */
    public Double getScore(){
	    return  score;
    }
    /**积分
    *@param  score
    */
    public void setScore(Double score){
        this.score = score;
    }

    /** 用户id，关联用户
    *@return 
    */
    public Integer getUserid(){
	    return  userid;
    }
    /** 用户id，关联用户
    *@param  userid
    */
    public void setUserid(Integer userid){
        this.userid = userid;
    }

    /**起始有效日期
    *@return 
    */
    public Date getStartdate(){
	    return  startdate;
    }
    /**起始有效日期
    *@param  startdate
    */
    public void setStartdate(Date startdate){
        this.startdate = startdate;
    }

    /** 截止日期
    *@return 
    */
    public Date getEnddate(){
	    return  enddate;
    }
    /** 截止日期
    *@param  enddate
    */
    public void setEnddate(Date enddate){
        this.enddate = enddate;
    }

    /**用户删除标记 0:未删除 1:已删除
    *@return 
    */
    public String getDelFlag(){
	    return  delFlag;
    }
    /**用户删除标记 0:未删除 1:已删除
    *@param  delFlag
    */
    public void setDelFlag(String delFlag){
        this.delFlag = delFlag;
    }


    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getSeq() {
        return seq;
    }
}
